﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;

namespace USERS.CYT369.COM.Models
{
    public class Base64File : Microsoft.AspNetCore.Http.IFormFile
    {
        private Microsoft.AspNetCore.Http.HttpRequest m_HttpRequest;
        private System.IO.MemoryStream m_Stream;

        public Base64File(Microsoft.AspNetCore.Http.HttpRequest request, string name)
        {
            m_HttpRequest = request;
            this.Name = name;
        }

        public string ContentDisposition
        {
            get; set;
        }

        public string ContentType
        {
            get; set;
        }

        public string FileName { get; set; }

        public IHeaderDictionary Headers { get; set; }

        public long Length { get; set; }

        public string Name { get; set; }

        public void CopyTo(Stream target)
        {
            //throw new NotImplementedException();
        }

        public Task CopyToAsync(Stream target, CancellationToken cancellationToken = default)
        {
            throw new NotImplementedException();
        }

        public Stream OpenReadStream()
        {
            throw new NotImplementedException();
        }
    }


}
